source/bindbc/loader/sharedlib.d(31,41): Error: `this._error.ptr` cannot be used in `@safe` code, use `&this._error[0]` instead source/bindbc/loader/sharedlib.d(37,43): Error: `this._message.ptr` cannot be used in `@safe` code, use `&this._message[0]` instead source/bindbc/loader/sharedlib.d(72,12): Error: `_errors.ptr` cannot be used in `@safe` code, use `&_errors[0]` instead source/bindbc/loader/sharedlib.d(183,39): Error: `@safe` function `bindbc.loader.sharedlib.allocErrs` cannot call `@system` function `core.stdc.stdlib.malloc` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(158,9): `core.stdc.stdlib.malloc` is declared here source/bindbc/loader/sharedlib.d(183,17): Error: cast from `void*` to `ErrorInfo*` not allowed in safe code source/bindbc/loader/sharedlib.d(184,19): Error: `@safe` function `bindbc.loader.sharedlib.allocErrs` cannot call `@system` function `core.stdc.stdlib.exit` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/stdlib.d(169,9): `core.stdc.stdlib.exit` is declared here source/bindbc/loader/sharedlib.d(187,22): Error: `_errors.ptr` cannot be used in `@safe` code, use `&_errors[0]` instead source/bindbc/loader/sharedlib.d(188,14): Error: `_errors.ptr` cannot be used in `@safe` code, use `&_errors[0]` instead source/bindbc/loader/sharedlib.d(201,17): Error: `(*pinfo)._error.ptr` cannot be used in `@safe` code, use `&(*pinfo)._error[0]` instead source/bindbc/loader/sharedlib.d(204,22): Error: `(*pinfo)._message.ptr` cannot be used in `@safe` code, use `&(*pinfo)._message[0]` instead source/bindbc/loader/sharedlib.d(208,23): Error: `(*pinfo)._message.ptr` cannot be used in `@safe` code, use `&(*pinfo)._message[0]` instead source/bindbc/loader/sharedlib.d(278,16): Error: `@safe` function `bindbc.loader.sharedlib.sysError` cannot call `@system` function `core.stdc.string.strncpy` /opt/dmd-safe/dmd/generated/linux/release/64/../../../../../druntime/import/core/stdc/string.d(87,8): `core.stdc.string.strncpy` is declared here source/bindbc/loader/sharedlib.d(279,12): Error: safe function `bindbc.loader.sharedlib.sysError` cannot index pointer `buf` /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.